const ENV = {
    PROXY: 'c.dev.8891.com.tw'
};

const config = require('./webpack.common.js');
config.devServer = {
    disableHostCheck: true,
    historyApiFallback: true,
    proxy: {
        '/api/*': {
            target: 'http://'+ENV.PROXY,
            secure: false,
            host: ENV.PROXY
        },
        '/photoModel-*': {
            target: 'http://'+ENV.PROXY,
            secure: false,
            host: ENV.PROXY
        }
    }
};

module.exports = config;